vt-d: some small fixes to apic_pin_2_ir_idx
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 12:51:55 +0000 (13:51 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 12:51:55 +0000 (13:51 +0100)
commit71a311b28e9043c30dd5c817d04ff135042089b4
tree9da3aab1f1a77ce62941824ebd0f00df5af42e3c
parent611d7859a036dc2f9c67d697cbecc95765e41bc1
vt-d: some small fixes to apic_pin_2_ir_idx

1) apic_pin_2_ir_idx should be int** rahter than unsigned int**,
because we use the int -1 to indicate that the related IRTE index is
not allocated.
2) shouldn't re-init apic_pin_2_ir_idx when resuming from S3.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen/drivers/passthrough/vtd/intremap.c